﻿#region [ Usings ]

using System.Web.UI;

#endregion

namespace BPC.SharePoint2010.AtoZWebPart.AtoZWebPart
{
    public partial class AtoZWebPartUserControl : UserControl
    {
        #region [ Properties ]

        public string CssClass { get; set; }

        #endregion

        #region [ Overrides ]

        /// <summary>
        /// Overrides the container css class if the class is set in the webpart properties. 
        /// </summary>
        protected override void CreateChildControls()
        {
            if (!string.IsNullOrEmpty(CssClass))
            {
                atoZContainer.Attributes["class"] = CssClass;
            }
            base.CreateChildControls();
        }
      
        #endregion
    }
}
